﻿using System.Collections.Generic;

namespace Model
{
    public class Setting
    {
        public string port1 { get; set; }
        public string port2 { get; set; }
        public string port3 { get; set; }
        public string port4 { get; set; }
        public string port5 { get; set; }
        public string port6 { get; set; }
        public string port7 { get; set; }
        public string port8 { get; set; }
        public string downLoadPath { get; set; }
        public string simbaPath { get; set; }
        public Setting (Dictionary<string, string> dic)
        {
            port1 = dic["Port1"];
            port2 = dic["Port2"];
            port3 = dic["Port3"];
            port4 = dic["Port4"];
            port5 = dic["Port5"];
            port6 = dic["Port6"];
            port7 = dic["Port7"];
            port8 = dic["Port8"];
        }
    }
    public class JZZCSetting
    {
        public string box1 { get; set; }
        public string box2 { get; set; }
        public string box1Port { get; set; }
        public string box2Port { get; set; }
        public string stationcode { get; set; }
        public string devcode1 { get; set; }
        public string devcode2 { get; set; }
        public string simbaLogPath { get; set; }
        public JZZCSetting(Dictionary<string, string> dic)
        {
            this.box1Port = dic["box1Port"];
            this.box2Port = dic["box2Port"];
            this.box1 = "测试箱" + int.Parse(dic["box1code"]);
            this.box2 = "测试箱" + int.Parse(dic["box2code"]);
            this.stationcode = "工站"+dic["stationcode"];
            this.devcode1 = dic["devcode1"];
            this.devcode2 = dic["devcode2"];
            this.simbaLogPath = dic["校准综测结果"];
        }
    }
}
